﻿@{
    Layout = null;
    string BusCode = ViewBag.buscode;
    var StartDate = ViewBag.StartDate;
}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
    <title>西安市班线客运安全管理系统</title>
    <link href="~/www/css/style.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
    <script src="~/www/js/layer_mobile/layer.js"></script>
    <link href="~/www/js/skin/WdatePicker.css" rel="stylesheet" />
</head>
<body>
    <a class="homeLinks" href="@Url.Action("home","M_login")">返回主页</a>
    <div class="djcCenHea"><span></span>待稽查车辆</div>
    <div class="djcCen">
        <div class="djcCenFor">
            <form id="form1">
                <input class="djcCFTxt" id="CarNO" name="CarNO" type="text" value="@BusCode" placeholder="请输入4位以上车牌号查询" />
                <button class="djcCFBut" type="submit" onclick=" return SubmitData()">
                    <i class="fa fa-search"></i> 查询
                </button>
            </form>
        </div>
        <div id="syncCarExitStation" class="djcCenTab" data-url="@Url.Action("Grid","M_SyncCarExitStation")">
            @Html.Action("Grid", "M_SyncCarExitStation")
        </div>
    </div>
</body>
</html>
@Html.LocalImport("~/www/js/WdatePicker.js")
@Html.CdnImport("~/lib/jquery/jquery.js")
<script>
    function SubmitData() {
        var BusCode = $("#CarNO").val();//车牌号
        var starDate = $("#startDate").val();//查询时间
        if (BusCode == null || BusCode.length < 4) {
            layer.open({ content: "请输入最少4位车牌号！", btn: "确定" });
            return false;
        }
        return true;
    };
</script>